//
//  MediaEditTagViewController.h
//  XPhoto
//
//  Created by baboy on 2019/5/7.
//  Copyright © 2019 baboy. All rights reserved.
//

#import "BKViewController.h"
#import "BKTableView.h"

NS_ASSUME_NONNULL_BEGIN
@protocol TagSearchDelegate;

@interface TagSearchViewController : BKViewController
@property(nonatomic, strong) IBOutlet UIView *topView;
@property(nonatomic, strong) IBOutlet UIView *bottomView;
@property(nonatomic, strong) IBOutlet UILabel *descLabel;
@property(nonatomic, strong) IBOutlet UIButton *clearButton;
@property(nonatomic, strong) IBOutlet UITextField *textField;
@property(nonatomic, strong) IBOutlet UIScrollView *scrollView;
@property(nonatomic, strong) IBOutlet NSLayoutConstraint *topViewHeightConstraint;
@property(nonatomic, strong) IBOutlet NSLayoutConstraint *bottomViewHeightConstraint;

@property(nonatomic, strong) NSMutableArray *tags;
@property(nonatomic, assign) id<TagSearchDelegate> delegate;
@property(nonatomic, assign) NSInteger maxSelectedCount;
- (IBAction)clearHistory:(id)sender;
@end

@protocol TagSearchDelegate <NSObject>

- (void)tagSearchViewController:(id)controller didSearchTags:(NSArray*) tags;

@end
NS_ASSUME_NONNULL_END
